from typing import Dict
from typing import List
from enum import IntEnum


class Gender(IntEnum):
  male = 1
  female = 2

class ProductSaleInfo:
  user_id: str
  product_id: str
  product_category: str
  num: int
  price: float
  buy_time: str
  def __init__(self) -> None:
   self.user_id = ""
   self.product_id = ""
   self.product_category = ""
   self.num = 0
   self.price = 0.0
   self.buy_time = ""


class UserInfo:
  user_id: str
  gender: Gender
  age: int
  register_time: str
  def __init__(self) -> None:
   self.user_id = ""
   self.age = 0
   self.register_time = ""


class UserLoginInfo:
  user_id: str
  handle_time: str
  is_login: bool
  def __init__(self) -> None:
   self.user_id = ""
   self.handle_time = ""
   self.is_login = False


